<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>九九乘法表</title>
    <style>
        .odd-row {
            background-color: #DDDDDD;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <h1>九九乘法表</h1>
    <script>
        let result = '';
        for (let i = 1; i <= 9; i++) {
            let row = '';
            for (let j = 1; j <= i; j++) {
                row += `${j}*${i}=${i * j} `;
            }
            if (i % 2 !== 0) {
                result += `<p class="odd-row">${row.trim()}</p>`;
            } else {
                result += `<p>${row.trim()}</p>`;
            }
        }
        document.write(result);
    </script>
</body>
</html>
